package edu.ou.herbarium.service;

import java.util.HashSet;
import java.util.Set;

import javax.xml.bind.annotation.XmlTransient;

/**
 * Collector entity. @author MyEclipse Persistence Tools
 */

public class Collector implements java.io.Serializable {

	// Fields

	private Integer collectorId;
	private ImageData imageData;
	private String collectorFirstName;
	private String collectorMiddleName;
	private String collectorLastName;
	private String collectorNo;
	private Integer institute;
	private Set<SpecCollectorMap> specCollectorMaps = new HashSet<SpecCollectorMap>(0);

	// Constructors

	/** default constructor */
	public Collector() {
	}

	/** full constructor */
	public Collector(ImageData imageData, String collectorFirstName,
			String collectorMiddleName, String collectorLastName,
			String collectorNo, Integer institute, Set<SpecCollectorMap>  specCollectorMaps) {
		this.imageData = imageData;
		this.collectorFirstName = collectorFirstName;
		this.collectorMiddleName = collectorMiddleName;
		this.collectorLastName = collectorLastName;
		this.collectorNo = collectorNo;
		this.institute = institute;
		this.specCollectorMaps = specCollectorMaps;
	}

	// Property accessors

	public Integer getCollectorId() {
		return this.collectorId;
	}

	public void setCollectorId(Integer collectorId) {
		this.collectorId = collectorId;
	}

	public ImageData getImageData() {
		return this.imageData;
	}

	public void setImageData(ImageData imageData) {
		this.imageData = imageData;
	}

	public String getCollectorFirstName() {
		return this.collectorFirstName;
	}

	public void setCollectorFirstName(String collectorFirstName) {
		this.collectorFirstName = collectorFirstName;
	}

	public String getCollectorMiddleName() {
		return this.collectorMiddleName;
	}

	public void setCollectorMiddleName(String collectorMiddleName) {
		this.collectorMiddleName = collectorMiddleName;
	}

	public String getCollectorLastName() {
		return this.collectorLastName;
	}

	public void setCollectorLastName(String collectorLastName) {
		this.collectorLastName = collectorLastName;
	}

	public String getCollectorNo() {
		return this.collectorNo;
	}

	public void setCollectorNo(String collectorNo) {
		this.collectorNo = collectorNo;
	}

	public Integer getInstitute() {
		return this.institute;
	}

	public void setInstitute(Integer institute) {
		this.institute = institute;
	}
	@XmlTransient
	public Set<SpecCollectorMap>  getSpecCollectorMaps() {
		return this.specCollectorMaps;
	}

	public void setSpecCollectorMaps(Set<SpecCollectorMap>  specCollectorMaps) {
		this.specCollectorMaps = specCollectorMaps;
	}

}